package edu.uw.tcss360.group6.gui.Actions;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;


import edu.uw.tcss360.group6.gui.GUI;

@SuppressWarnings("serial")
public class HomeAction extends AbstractAction {

	public HomeAction() {
		super("Home");
	}
	@Override
	public void actionPerformed(ActionEvent e) {
        GUI.instance().my_main_panel.setCard(GUI.instance().my_main_panel.getCard());

        if(GUI.instance().currentUser != null)
            GUI.instance().my_main_panel.setCard(GUI.instance().currentUser.getClass().getSimpleName().toLowerCase() + "-splash");
        else
            GUI.instance().my_main_panel.setCard("splash");
	}
}
